home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 36
/
036.d81
/
shiver me timber
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
20KB
|
538 lines
1 gosub60100
2 print"[147] [211][200][201][214][197][210][160][205][197][160][212][201][205][194][197][210][211]":print" by [196]ana [195]lapp"
3 c=115:dimwd$(c),wt(c),li(85),fi(85),ti(85),di$(85),dm(27,6)
4 tc=0:lc=1:ic=0:fc=0:ac=0:tv=0:lp=118:lr=1::nn=90:dc=.5:vc=0
5 open15,8,15:open2,8,2,"o:smtfile,p,r":get#2,a$,a$
10 forr=1toc:input#2,wd$(r),wt(r):s=wt(r):ifs>90then20
15 input#2,di$(s),li(s),ti(s),fi(s)
20 next
25 forr=1to27:fors=1to6:input#2,dm(r,s):nexts,r:close2:close15
45 print"[196]o you want instructions? ([217]/[206]) ";
50 getz$:ifz$=""then50
51 ifz$="n"orz$="[206]"thenprint"[206]o":goto100
52 ifz$<>"y"andz$<>"[217]"then50
53 print"[217]es"
54 a$="[201]n this all-text game you will read about your surroundings, and will b"
55 a$=a$+"e prompted to interact with it by entering commands on the keyboard."
56 b$=" [195]ommands must start with a verb, and may be followed by a noun, or a co"
57 c$="mbination of nouns and prepositions. [198]or a list of verbs type 'list' an"
58 d$="d hit 'return' at the prompt '?'. [217]ou will have to move to different lo"
59 d$=d$+"cations by typing 'walk (direction)', like 'walk north'. '[213]p' and 'd"
60 e$="own' are in addition to the four compass directions. [205]aking a map is re"
61 e$=e$+"commended.":print"[147]":gosub10000
75 print" [208][210][197][211][211][160][193][206][217][160][203][197][217]"
76 getz$:ifz$=""goto76
100 print"[147]":a$="[215]hile sailing you notice a figure, hobbling on a wooden leg, "
101 b$="waving for you to land on the beach to the south. [217]ou steer south, bea"
103 c$="ch your sailboat, and disembark, only to find that the figure has vani"
105 d$="shed, without a trace. [160] ":goto5995
110 a$=" [217]ou raise sail and depart with your treasure. [193]s the volcanic island"
112 b$=" erupts, an ape frantically swims past you and out of sight. [212]he volca"
115 c$="no explodes again and a figure with a wooden leg appears before you. [200]"
117 d$="e peers at you through thick glasses, and speaks without a sound 'good"
120 e$=" work matey', then vanishes. [217]ou glance at your treasure and "
125 e$=e$+"steer for home.":gosub10000:print" [208][204][193][217] [193][199][193][201][206]? (y/n)"
131 getz$:ifz$="y"then5025
132 ifz$<>"n"then131
133 goto5030
200 a$="[217]ou don't see a "+y$+" here.":goto295
202 a$="[217]ou don't see that here.":goto295
205 a$="[201] don't know the word '"+y$+"'.":goto295
210 a$="[208]lease limit your commands to four words.":goto295
215 a$="[208]lease begin with a verb.":goto295
216 a$="[201] don't understand you.":goto295
220 a$="[215]hat do you want to do that to?":goto295
225 a$="[201] need to know more here, so please use the following syntax: "
226 b$="'verb noun preposition noun' like 'put coin in slot'"
227 c$=", or 'unlock door with key'.":goto295
230 a$="[217]ou don't have that.":goto295
235 a$="[208]lease be more specific.":goto295
295 tc=tc-1:gosub10000
300 z$="":wc=1:y$="":print
305 gosub60500:ifz$="inv"thenz$=z$+"en"
306 ifz$="ne"thenz$="northeast"
307 ifz$="nw"thenz$="northwest"
308 ifz$="sw"thenz$="southwest"
309 ifz$="se"thenz$="southeast"
310 l=len(z$):ifl=0then305
320 tc=tc+1
340 forr=1tol:a$=mid$(z$,r,1)
350 ifa$=" "then370
355 y$=y$+a$:ifr<>lthen570
370 ify$=""then570
375 ify$="the"andwc=1then215
376 ify$="the"then565
380 iflen(y$)>37then216
400 fors=1toc:ifleft$(y$,5)=wd$(s)then410
405 nexts:goto205
410 v=wt(s):ifv>79then510
470 t=li(v):ift=lport=1then510
480 ift>99then200
490 u=fi(t):ift<>33andu<>2andu<>6andu<>14then200
505 ifli(t)<>lpandli(t)<>1then200
510 onwcgoto520,530,540,550,210
520 c1=v:goto560
530 c2=v:goto560
540 c3=v:goto560
550 c4=v
560 wc=wc+1
565 y$=""
570 nextr:wc=wc-1:a$=""
575 ifwc=1thenifc1>93andc1<100thenwc=2:c2=c1:c1=102
600 ifc1<100orc1>199then215
610 onwcgoto620,630,640,650
620 ifc1=103orc1=123orc1=130orc1=131orc1=132orc1=140orc1=141then700
625 goto220
630 ifc2>99then216
631 ifc2>nnandc1<>102andc1<>123then216
635 ifc1>108andc1<118then225
637 goto700
640 ifc2<199orc3>99then216
645 ifc1>107andc1<120then225
646 ifc1=120orc1=123orc1=128then700
647 goto216
650 ifc2>nnorc3<199orc4>nnthen216
655 ifc1<108orc1>120then216
660 ifc2=c4then216
665 ifc1=109then700
670 ifc1<>108andc1<>111andc1<>112then680
675 ifli(c2)<>1then230
676 ifc2<3then216
677 goto700
680 ifli(c4)<>1then230
685 ifc3<>205then216
700 onc1-99goto750,800,850,950,1000,1050,1200,1200,1250,1350,1400,1450,1550,1600
705 onc1-113goto1600,1650,,,1800,1850,1900,1950,1950,2050,2250,2300
710 onc1-125goto2350,2400,2450,2500,2550,2600,2650
715 onc1-139goto5000,5000
749 print"undefined":goto300
750 ifc2<>21then216
755 goto1850
800 ifc2=80andlp=103orlp=102then820
805 ifc2=80andlp=103orlp=102then820
810 ifc2=84andlp=111orlp=115then820
815 goto5903
820 iflp=102orlp=115thenc2=99:goto850
825 c2=98
850 ifc2<94then216
857 s=dm(lp-99,c2-93):ifs>99then900
860 onsgoto863,865
862 a$="[217]ou can't go that way.":goto5995
863 a$="[217]ou go wading, find nothing of interest then return.":goto5995
865 a$="[193] mountain blocks your way.":goto5995
900 iflp=100andfc>0thenfc=0:print"[212]he flare goes out."
905 ifs=116andfi(4)=0andli(4)=116thenprint"*[211][206][193][208]* [217]ou scamper back up.":goto7000
910 iflp=114ands=112thena$="[215]ith little to grip you fall ten feet."
930 lp=s:lr=1
935 li(27)=114:iflp=107thenli(27)=lp
946 goto5995
950 ifwc>1then216
955 ific=0thena$="[217]ou carry nothing.":goto5995
957 print"[217]ou hold:":gosub10100
958 goto7000
1000 ifc2=23thena$="[217]ou quickly develop a headache and remove them.":goto5995
1007 ifc2=8thena$="[217]ou already have two good ones.":goto5995
1015 goto5900
1050 s=li(c2):ifs=33thena$="[213]ntie it first.":goto5995
1055 iflp=100andfc=0then5935
1065 ifs=1thena$="[217]ou already have it.":goto5995
1067 s=ti(c2):ifc2=20then1075
1070 ifs<>1ands<>3then5900
1075 ific>5thena$="[217]ou can't carry anymore.":goto5995
1076 ifc2=24orc2=28thena$="[201]t crumbles.":goto1100
1077 ifc2=7andli(5)=lpthen5955
1078 ifc2=25then235
1079 ifc2=33thena$="[206]ot without a sharp knife.":goto5995
1080 ifc2=27andlp=114thena$="[212]hat is what supports you.":goto5995
1081 ifc2=27thena$="[217]ou are not strong enough.":goto5995
1082 ifc2=20ands=2thens=1:b$="[212]he volcano explodes violently.":vc=tc
1083 ic=ic+1:li(c2)=1:a$="[196]one. ":ifs=1thenifc2<50orc2>53thenti(c2)=3
1085 goto5995
1100 ifti(43)=1thenb$=" [217]ou notice a key within."
1140 goto5995
1200 iftv=0then1245
1205 ifc2=33thenc2=tv
1210 ifli(c2)<>33then1245
1215 tv=0:li(c2)=lp:goto5905
1245 a$="[201]t is not tied.":goto5995
1250 onwcgoto,1253,,1450
1253 ifc2<3then216
1255 ifli(c2)<>1then5933
1265 ic=ic-1:li(c2)=lp
1267 ifc2>49andc2<54thena$="[201]t splats and dries up.":li(c2)=101:goto5995
1270 goto5905
1350 ifc3<>204then216
1353 ifc4=33thenc4=c2:c2=33
1354 ifc2<>33then216
1355 ifc4=1thena$="[217]ou shiver at the thought of being tied up.":goto5995
1356 ifc4<>7andc4<>26andc4<>45then5907
1357 ifc4=7andli(5)=lpthen5955
1360 iftv>0thena$="[201]t is already tied to something.":goto5995
1365 tv=c4:a$="[212]ied. "
1366 ifli(c4)=1thenb$="[217]ou release the "+di$(c4)+".":ic=ic-1
1367 li(c4)=33:goto5995
1400 ifc3<>205then216
1405 c1=c2:c2=c4:c4=c1:c3=203
1450 ifc3=203orc3=207then1500
1457 ifc3<>202then216
1460 ifc4=16andli(6)=105thenc4=6
1465 s=fi(c4):ifs<>2ands<>6ands<>14then5900
1470 ifc4=8andc2<>22then1480
1473 ifc4=6andc2<>44then1480
1475 ic=ic-1:li(c2)=c4:ifc4=9thenli(c2)=112
1477 ifc4=10thenli(c2)=116:a$="[196]one. ":goto1485
1478 ifc2>49andc2<54thena$="[196]one.":goto1490
1479 goto5905
1480 print"[201]t won't fit.":goto7000
1485 ifc2<50orc2>53thenb$="[212]he "+di$(4)+" sniffs at it.":goto5995
1486 iffi(4)=9then1490
1487 b$="[212]he caiman gulps it down."
1489 ifc2=51thenfi(4)=9:c$=" [201]t promptly tips over unconscious."
1490 li(c2)=101:goto5995
1500 ifc4<>9then5900
1503 ifc2<>39andc2<>45then5900
1505 ifc2=39thena$="[212]he hole is too big, and the blanket too limp.":goto5995
1510 a$="[196]one. [212]he ape's head tilts as it looks down at your work. [200]e bounces "
1511 b$="off the chest, onto the plank, and straight through the floor, as the"
1512 c$=" rotten wood splinters to pieces.":li(5)=112:li(45)=0:ic=ic-1
1515 ac=tc:goto5